package com.euc.springbootframework.controller.auth;

import com.euc.springbootframework.controller.base.RESTBaseController;
import com.euc.springbootframework.entity.Role;
import com.euc.springbootframework.entity.User;
import com.euc.springbootframework.service.auth.UserService;
import com.euc.springbootframework.service.base.RestBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
@RequestMapping(value = "/user")
public class UserController  extends RESTBaseController<User> {

    @Autowired
    private UserService userService;

    @Override
    public RestBaseService<User> getRestService() {
        return userService;
    }

}
